﻿using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Survival;
using Survival.Plants;
using Survival.Animals;
using Survival.World;
using System.Linq;
using System.Text;

namespace Survival.Services
{
    public interface IWorldQuery
    {
        List<PlantData> GetVisiblePlants(IPhysical asker,float sightDistance);
        
    }

    public struct PlantData
    {
        public Vector2 Position;
        public float Scale;
        public Type PlantType;
        public float DistanceSquared;

        public PlantData(Plant plant, float distanceSquared)
        {
            Position = plant.Position;
            Scale = plant.Scale;
            PlantType = typeof(Plant);
            DistanceSquared = distanceSquared;
        }
    }
}
